Skip to content

[cmake] Ask for PROCESSOR_DESCRIPTION if cmake version is 3.10 or later.#6605

Merged
oshadura merged 1 commit into
root-project:masterfrom
vgvassilev:fix_cmake39
Oct 12, 2020
Merged

[cmake] Ask for PROCESSOR_DESCRIPTION if cmake version is 3.10 or later.#6605
oshadura merged 1 commit into
root-project:masterfrom
vgvassilev:fix_cmake39

Conversation

@vgvassilev

Copy link
Copy Markdown
Member

No description provided.

@vgvassilev vgvassilev requested a review from amadio October 10, 2020 18:37
@vgvassilev vgvassilev requested a review from oshadura as a code owner October 10, 2020 18:37
@phsft-bot

Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-fedora30/cxx14, ROOT-fedora31/noimt, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac1015/cxx17, windows10/cxx14
How to customize builds

@oshadura oshadura left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! We will need at the same moment probably increase the minimal version of CMake.

@oshadura oshadura merged commit 79519a3 into root-project:master Oct 12, 2020
Comment thread CMakeLists.txt
cmake_host_system_information(RESULT PROCESSOR QUERY PROCESSOR_DESCRIPTION)
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.10.0")
if (${CMAKE_MINIMUM_REQUIRED_VERSION} VERSION_GREATER_EQUAL "3.10.0")
message(FATAL_ERROR "Remove this condition")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks the compilation for me, when a dependency is pulled in, which sets a higher minimum required cmake version. Why is this check and the fatal error needed? Wouldn't it be sufficient to just check if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.10.0")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants